package com.wlyuan.open.dto;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author yuanzheng
 */
@Data
public class OpenReceivingAddressSyncDTO implements Serializable {
    private static final long serialVersionUID = 573678828213195494L;
    @NotNull(message = "地址编码不能为空")
    private String addressCode;

    @ApiModelProperty(value = "联系人")
    private String contactName;

    @ApiModelProperty(value = "联系电话")
    private String contactMobile;

    @ApiModelProperty(value = "邮箱")
    @JSONField(alternateNames = "email")
    private String contactEmail;

    @ApiModelProperty(value = "省份")
    private String province;

    @ApiModelProperty(value = "市")
    private String city;

    @ApiModelProperty(value = "区")
    private String district;

    @ApiModelProperty(value = "省编码")
    private String provinceCode;

    @ApiModelProperty(value = "市编码")
    private String cityCode;

    @ApiModelProperty(value = "区编码")
    private String districtCode;

    @ApiModelProperty(value = "经纬度")
    private String lat;

    @ApiModelProperty(value = "经纬度")
    private String lon;

    @ApiModelProperty(value = "详细地址")
    private String address;
}
